package com.sh.healthtv.app.com.sh.healthtv.obserservice;

/**
 * Created by zhouyucheng on 2017/7/27.
 */

public class PlayObserveble extends Observable<PlayObserver> {

    private static PlayObserveble mInstance;

    public static PlayObserveble getInstance() {
        if (mInstance == null) {
            mInstance = new PlayObserveble();
        }
        return mInstance;
    }

    public void connectProgram(int type) {
        for (PlayObserver watcher : mObservers) {
            watcher.connectProgram(type);
        }
    }

    public void programHis(int time,int type) {
        for (PlayObserver watcher : mObservers) {
            watcher.programHis(time,type);
        }
    }
    @Override
    public void registerListener(PlayObserver observer) {

    }

    @Override
    public void unregisterListener(int index) {

    }

    @Override
    public void unregisterAllListener() {

    }
}
